import request from '@/utils/request'

// 查询商户菜品管理列表
export function listDishoperating(query) {
  return request({
    url: '/operation/dishoperating/list',
    method: 'get',
    params: query
  })
}

// 查询商户菜品管理详细
export function getDishoperating(dishid) {
  return request({
    url: '/operation/dishoperating/' + dishid,
    method: 'get'
  })
}

// 新增商户菜品管理
export function addDishoperating(data) {
  return request({
    url: '/operation/dishoperating',
    method: 'post',
    data: data
  })
}

// 修改商户菜品管理
export function updateDishoperating(data) {
  return request({
    url: '/operation/dishoperating',
    method: 'put',
    data: data
  })
}

// 删除商户菜品管理
export function delDishoperating(dishid) {
  return request({
    url: '/operation/dishoperating/' + dishid,
    method: 'delete'
  })
}
